<?php
global $_GPC, $_W;
$GLOBALS['frames'] = $this->getMainMenu();
$item = pdo_get('zh_gjw_orders',array('id'=>$_GPC['id']));
// $item = pdo_fetch("SELECT a.*,b.* FROM " . tablename('zh_gjw_orders'). " a"  . " left join " . tablename("zh_gjw_xxpublish") . " b on a.p_id=b.id WHERE a.id=:id", array(':id'=>$_GPC['id']));
if ($item['type']==1) {
	$itemp = pdo_get('zh_gjw_dbpublish',array('id'=>$item['p_id']));
	$item['video']=$itemp['video'];
	$item['dbname']=$itemp['dbname'];
	$item['exfee']=$itemp['exfee'];
}
if ($item['type']==2) {
	$itemp = pdo_get('zh_gjw_shotpublish',array('id'=>$item['p_id']));
	$item['video']=$itemp['video'];
	$item['title']=$itemp['title'];
	$item['exfee']=$itemp['exfee'];
}
if ($item['type']==3) {
	$itemp = pdo_get('zh_gjw_marketpublish',array('id'=>$item['p_id']));
	$item['video']=$itemp['video'];
	$item['title']=$itemp['title'];
	$item['exfee']=$itemp['exfee'];
}
if ($item['type']==4) {
	$itemp = pdo_get('zh_gjw_storepublish',array('id'=>$item['p_id']));
	$item['img']=explode(',',$itemp['img']);
	$item['title']=$itemp['title'];
	$item['exfee']=$itemp['exfee'];
}
if ($item['type']==5) {
	$itemp = pdo_get('zh_gjw_pripublish',array('id'=>$item['p_id']));
	$item['img']=explode(',',$itemp['img']);
	$item['title']=$itemp['title'];
}
// var_dump($item);die;
include $this->template('web/orderdetail');